Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing npe in CardInputWidget #392

Merged
merged 1 commit into from
Sep 21, 2017
Merged

fixing npe in CardInputWidget #392

merged 1 commit into from
Sep 21, 2017

Conversation

mrmcduff-stripe
Copy link
Contributor

@mrmcduff-stripe mrmcduff-stripe commented Sep 21, 2017

r? @ksun-stripe
#391

It looks like this is a very rare NPE, but digging into the source code it appears that the super.onCreateInputConnection method absolutely can return null, and that you need to be sure not to use that value in any other calls if it is.

For context, some others have run into this on SO
https://stackoverflow.com/questions/36498605/inputconnection-finishcomposingtext-nullpointerexception

@ksun-stripe
Copy link

lgtm

@mrmcduff-stripe mrmcduff-stripe merged commit 54ad828 into master Sep 21, 2017
@mshafrir-stripe mshafrir-stripe deleted the mrmcduff-ciwnpe branch January 24, 2019 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants